package org.hackystat.iw.projectoverviewer.page.defaultmetrics;

import java.io.Serializable;

/**
 * A class representing the metric.
 *
 * @author Jianfei Liao
 * @author Nathan Britton
 */
public class Metric implements Serializable {

  /** Support serialization. */
  private static final long serialVersionUID = 1L;
  /** The metric label. */
  private String m_label;
  /** The metric value. */
  private String m_value;

  /**
   * Constructor.
   * 
   * @param label The metric label.
   * @param value The metric value.
   */
  public Metric(String label, String value) {
    this.m_label = label;
    this.m_value = value;
  }

  /**
   * Returns the metric label.
   * 
   * @return The metric label.
   */
  public String getLabel() {
    return m_label;
  }

  /**
   * Sets the metric label.
   * 
   * @param label The metric label.
   */
  public void setLabel(String label) {
    this.m_label = label;
  }

  /**
   * Returns the metric value.
   * 
   * @return The metric value.
   */
  public String getValue() {
    return m_value;
  }

  /**
   * Sets the metric value.
   * 
   * @param value The metric value.
   */
  public void setValue(String value) {
    this.m_value = value;
  }
}
